package com.ysd.service;

import java.util.List;

import com.ysd.entity.Roles;
import com.ysd.entity.User;

public interface rolesService {

	/**
	 * 获取全部角色信息
	 * @return
	 */
	List<Roles> findAllRoles();
	/**
	 * 给用户添加角色
	 * @param userid
	 * @param roleid
	 */
	Integer saveUserrole(Integer uid, Integer rid);
	List<Roles> findAll(Integer uid);
	void delUserrole(Integer uid, Integer rid);//用户删除
	
	//角色设置权限
	public Object addU_R(Integer uid, Integer rid);

	public Object deleteU_R(Integer uid);
}
